﻿<%@ Page Language="C#" MasterPageFile="~/MasterPages/MasterPage2.master" AutoEventWireup="true" CodeFile="Admin_ThongKeDoanhThuTheoNam.aspx.cs" Inherits="ChucNang_Admin_Admin_ThongKeDoanhThuTheoNam" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<h2>THỐNG KÊ DOANH THU THEO NĂM</h2>
    <center>
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
        DataKeyNames="Id" DataSourceID="ObjectDataSource1" Width="197px">
        <RowStyle Font-Bold="True" />
        <Columns>
            <asp:BoundField DataField="Nam" HeaderText="Năm" InsertVisible="False" 
                ReadOnly="True" SortExpression="Id" />
            <asp:BoundField DataField="DoanhThu" HeaderText="Doanh Thu" 
                SortExpression="Id_TaiKhoan" />
        </Columns>
        <HeaderStyle BackColor="#CC0000" ForeColor="White" />
    </asp:GridView>
    </center>
    <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
        DeleteMethod="Delete" InsertMethod="Insert" 
        OldValuesParameterFormatString="original_{0}" 
        SelectMethod="DATHANG_ThongKeDoanhThuTheoNam" 
        TypeName="DataDSTableAdapters.DATHANGTableAdapter" UpdateMethod="Update">
        <DeleteParameters>
            <asp:Parameter Name="Original_Id" Type="Int32" />
        </DeleteParameters>
        <UpdateParameters>
            <asp:Parameter Name="Id_TaiKhoan" Type="Int32" />
            <asp:Parameter Name="DienThoai" Type="String" />
            <asp:Parameter Name="DiaChi" Type="String" />
            <asp:Parameter Name="ThoiGianDatHang" Type="DateTime" />
            <asp:Parameter Name="NgayDaGiaoHang" Type="DateTime" />
            <asp:Parameter Name="Id_NhanVienGiaoHang" Type="Int32" />
            <asp:Parameter Name="TongTien" Type="Double" />
            <asp:Parameter Name="TrangThai" Type="Int32" />
            <asp:Parameter Name="ThoiGianHuy" Type="DateTime" />
            <asp:Parameter Name="Original_Id" Type="Int32" />
        </UpdateParameters>
        <InsertParameters>
            <asp:Parameter Name="Id_TaiKhoan" Type="Int32" />
            <asp:Parameter Name="DienThoai" Type="String" />
            <asp:Parameter Name="DiaChi" Type="String" />
            <asp:Parameter Name="ThoiGianDatHang" Type="DateTime" />
            <asp:Parameter Name="NgayDaGiaoHang" Type="DateTime" />
            <asp:Parameter Name="Id_NhanVienGiaoHang" Type="Int32" />
            <asp:Parameter Name="TongTien" Type="Double" />
            <asp:Parameter Name="TrangThai" Type="Int32" />
            <asp:Parameter Name="ThoiGianHuy" Type="DateTime" />
        </InsertParameters>
    </asp:ObjectDataSource>
    <br />
</asp:Content>

